import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/',
            name: 'index',
            component: () => import(/* webpackChunkName: "index" */ './views/index.vue'),
            meta: {
                show_nav: true
            }
        },
        {
            path: '/job',
            component: () => import(/* webpackChunkName: "job" */ './views/job.vue'),
            children: [
                {
                    path: '',
                    name: 'job',
                    meta: {
                        show_nav: true
                    },
                    component: () => import(/* webpackChunkName: "job" */ './components/job/job_signing.vue'),
                },
                {
                    path: 'job_doing',
                    name: 'job_doing',
                    meta: {
                        show_nav: true
                    },
                    component: () => import(/* webpackChunkName: "job" */ './components/job/job_doing.vue'),
                },
                {
                    path: 'job_end',
                    name: 'job_end',
                    meta: {
                        show_nav: true
                    },
                    component: () => import(/* webpackChunkName: "job" */ './components/job/job_end.vue'),
                }
            ]

        },
        {
            path: '/release',
            component: () => import(/* webpackChunkName: "release" */ './views/release.vue'),
            children: [
                /*   {
                       path:'',
                       name: 'release',
                       meta:{
                           show_nav:true
                       },
                       component: () => import(/!* webpackChunkName: "release" *!/ './components/release/pending.vue'),
                   },
                   {
                       path:'approved',
                       name: 'approved',
                       meta:{
                           show_nav:true
                       },
                       component: () => import(/!* webpackChunkName: "release" *!/ './components/release/approved.vue'),
                   },
                   {
                     path:'not_approved',
                     name: 'not_approved',
                       meta:{
                           show_nav:true
                       },
                     component: () => import(/!* webpackChunkName: "release" *!/ './components/release/not_approved.vue'),
                 },
                 {
                   path:'signing',
                   name: 'signing',
                     meta:{
                         show_nav:true
                     },
                   component: () => import(/!* webpackChunkName: "release" *!/ './components/release/signing.vue'),
               },*/
                {
                    path: '',
                    name: 'signing',
                    meta: {
                        show_nav: true
                    },
                    component: () => import(/* webpackChunkName: "release" */ './components/release/signing.vue'),
                },

                {
                    path: 'doing',
                    name: 'doing',
                    meta: {
                        show_nav: true
                    },
                    component: () => import(/* webpackChunkName: "release" */ './components/release/doing.vue'),
                },
                {
                    path: 'end',
                    name: 'end',
                    meta: {
                        show_nav: true
                    },
                    component: () => import(/* webpackChunkName: "release" */ './components/release/end.vue'),
                }
            ]

        },
        {
            path: '/message',
            name: 'message',
            component: () => import(/* webpackChunkName: "message" */ './views/message.vue'),
            meta: {
                show_nav: true
            }
        },
        {
            path: '/home',
            name: 'home',
            component: () => import(/* webpackChunkName: "home" */ './views/home.vue'),
            meta: {
                show_nav: true
            }
        },
        {
            path: '/company',
            name: 'company',
            component: () => import(/* webpackChunkName: "company" */ './views/company.vue'),
            meta: {
                show_nav: true
            }
        },
        {
            path: '/task_detail',
            name: 'task_detail',
            component: () => import(/* webpackChunkName: "task_detail" */ './views/task_detail.vue')
        },
        {
            path: '/faq',
            name: 'faq',
            component: () => import(/* webpackChunkName: "faq" */ './views/faq.vue')
        },
        {
            path: '/change',
            name: 'change',
            component: () => import(/* webpackChunkName: "change" */ './views/change.vue')
        },

        {
            path: '/task_edit',
            name: 'task_edit',
            component: () => import(/* webpackChunkName: "task_edit" */ './views/task_edit.vue')
        },
        {
            path: '/user_info',
            name: 'user_info',
            component: () => import(/* webpackChunkName: "user_info" */ './views/user_info.vue')
        },
        {
            path: '/user_info_edit',
            name: 'user_info_edit',
            component: () => import(/* webpackChunkName: "user_info_edit" */ './views/user_info_edit.vue')
        },
        {
            path: '/info_edit',
            name: 'info_edit',
            component: () => import(/* webpackChunkName: "info_edit" */ './views/info_edit.vue')
        },
        {
            path: '/bill',
            name: 'bill',
            component: () => import(/* webpackChunkName: "bill" */ './views/bill.vue')
        },
        {
            path: '/sys',
            name: 'sys',
            component: () => import(/* webpackChunkName: "sys" */ './views/sys.vue')
        },
        {
            path: '/user_auth',
            name: 'user_auth',
            component: () => import(/* webpackChunkName: "user_auth" */ './views/user_auth.vue')
        },
        {
            path: '/company_auth',
            name: 'company_auth',
            component: () => import(/* webpackChunkName: "company_auth" */ './views/company_auth.vue')
        },
        {
            path: '/company_detail',
            name: 'company_detail',
            component: () => import(/* webpackChunkName: "company_detail" */ './views/company_detail.vue')
        },
        {
            path: '/login',
            name: 'login',
            component: () => import(/* webpackChunkName: "login" */ './views/login.vue')
        },
        {
            path: '/signList',
            name: 'signList',
            component: () => import(/* webpackChunkName: "sign-list" */ './components/release/sign-list.vue')
        },
        {
            path: '/user/invite',
            name: 'invite',
            component: () => import(/* webpackChunkName: "invite" */ './views/invite.vue')
        },
        {
            path: '/user/invited',
            name: 'invited',
            component: () => import(/* webpackChunkName: "invite" */ './views/invited.vue')
        },
    ]
})
